<!--
/**************************************************
* @ payreceivestatusdetail.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/02/12, Simonyi Peng
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>

<html>
<head>
<title>收付款状况 </title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/string.js"></SCRIPT>

<%


ArrayList tList = (ArrayList)request.getAttribute("alertlist");
GSPayReceiveMentBean tBean = (GSPayReceiveMentBean)request.getAttribute("bean");
Double strikeNum = (Double)request.getAttribute("strikenum");

%>
<script>

	function process(val){

		if(checkQueryCond){
			if(val == 'Q'){
				payreceivequeryform.action = "<%=response.encodeURL(root+"/A180403.do")%>";
	    		payreceivequeryform.submit();			
	    		return false;
			}
		}
	}
	
	
	
</script>
</head>
<body BGCOLOR="#f5f5f5"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >

<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="20"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr height="20">
          <td height="20" width="1" class="mtxt_black">&nbsp;</td>
          <td height="30" width="758" class="mtxt_black">收付款状况 </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bg_line" height="2"></td>
  </tr>
</table>

<br>





<%if(tList!=null){%>
	<center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
            	<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20> 
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">公司名称</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">费用类型</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">金额（元）</div>
						</td>									
						<td class=top align=middle> 
                        <div align="center" class="txt_content">收（付）款日期</div>
						</td>									
						<td class=top align=middle> 
                        <div align="center" class="txt_content">负责（联系）人</div>
						</td>									
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">状态</div>
						</td>
					</tr>
					<%

						if(tList != null && tList.size() > 0){
						for(int i=0; i<tList.size(); i++){
							GSPayReceiveAbleStatusListVO tPraVO = (GSPayReceiveAbleStatusListVO)tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
							int size = 0;
					%>
					
							<tr <%=tTempStr%> height=20>
								<td class=top align=middle rowspan="<%=size %>"> 
									<div align="center" class="txt_content">
									<%=tPraVO.deptname%>
									</div>
								</td>			
								<td class=top align=middle rowspan="<%=size %>" nowrap> 								
									<div align="center" class="txt_content">
									<%=tPraVO.paytype%>
									</div>
								</td>	
								<td class=top align=middle rowspan="<%=size%>"> 
									<div align="center" class="txt_content">
									<%=tPraVO.paynum%>
									</div>
								</td>	
								<td class=top align=middle rowspan="<%=size %>"> 								
									<div align="center" class="txt_content">
									<%=tPraVO.paydate%>
									</div>
								</td>	
								<td class=top align=middle rowspan="<%=size %>"> 								
									<div align="center" class="txt_content">
									<%=tPraVO.principal%>
									</div>
								</td>	
								<td class=top align=middle rowspan="<%=size %>"> 								
									<div align="center" class="txt_content">
									<%=tPraVO.paystatus%>
									</div>
								</td>	
							</tr> 
						
							
					<%
							}
					%>
						  
				    <%
						}else{
					%>
							<font color="red">没有符合条件的应收应付信息,请重新输入查询条件</font>
					<%
						}
					%>
					</tbody>
				</table>
			</td>
		</tr>
	</table>
	</center>
	
<%		
	}
	if(tList == null && request.getAttribute("ISQUERYCONDITIONEXIST") != null && request.getAttribute("ISQUERYCONDITIONEXIST").equals("T")){
%>
		<font size="2">数据查询中......</font>
<%
	}
%>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				<TR height=20>
					<TD class="bg_column" align=center>金额</TD>
					<TD align=left class="bg_row_odd">
					<%=StringUtils.formatEDouble(tBean.getGs_actural_pay_num(),4)%>&nbsp;元
					</TD>					
					<TD class="bg_column" align=center>冲销金额</TD>
					<TD align=left class="bg_row_odd">
					<%=StringUtils.formatEDouble(tBean.getGs_offset_total_num(),4)%>&nbsp;元
					</TD>					
				</TR>
				<TR height=20>
					<TD class="bg_column" align=center>发票信息</TD>
					<TD align=left class="bg_row_odd">
					<%="1".equals(tBean.getGs_invoice())?"已开具发票":"已收取发票"%>
					</TD>					
					<TD class="bg_column" align=center>发票号</TD>
					<TD align=left class="bg_row_odd">
					<%=tBean.getGs_invoice_code()==null?"":tBean.getGs_invoice_code()%>
					</TD>					
				</TR>
				<TR height=20>
					<TD class="bg_column" align=center>收款日期</TD>
					<TD align=left class="bg_row_odd">
					<%=tBean.getGs_invoice_pay_date()%>
					</TD>					
					<TD class="bg_column" align=center>经手人</TD>
					<TD align=left class="bg_row_odd">
					<%=tBean.getGs_functionary()%>
					</TD>					
				</TR>
				<TR height=20>
					<TD class="bg_column" align=center>备注</TD>
					<TD align=left class="bg_row_odd" colspan=3>
					<%=tBean.getGs_notes()==null?"":tBean.getGs_notes()%>
					</TD>					
				</TR>
				
			</table>
		</td>
	</tr>
</table>

<p align='center'>
	<input type='button' class='kuang' value='关闭' onClick='window.close();'>
</p>
</body>
</html>